package lesson.properties;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();

        prop.setProperty("合肥","安徽");
        prop.setProperty("南京","江苏");
        prop.setProperty("杭州","浙江");

        FileWriter fw = new FileWriter("Day14\\src\\lesson\\a.txt");
        prop.store(fw,"abc");
        fw.close();
    }
}
